#include <stdio.h>

#define FUNDLEN 50

struct funds {
    char bank[FUNDLEN];
    double bankfund;
    char save[FUNDLEN];
    double savefund;
};

double sum(struct funds);       // 参数是一个结构

int main(void)
{
    struct funds stan = {
            "Garlic-Melon Bank",
            403218.13,
            "Luck's Savings and Loan",
            8568.4,
    };

    printf("Stan has a totol of $%.2f.\n", sum(stan));

    return  0;
}
double sum(struct funds mollah) {
    return (mollah.bankfund + mollah.savefund);
}